<?php

namespace Gds\VenteBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Gds\VenteBundle\Entity\CategorieRemise
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Gds\VenteBundle\Entity\CategorieRemiseRepository")
 */
class CategorieRemise
{
    /**
     * @ORM\ManyToOne(targetEntity="Gds\ArticleBundle\Entity\Article", inversedBy="categoriesRemise")
     * @ORM\JoinColumn(nullable=false)
     */
    private $article;
    /**
     * @ORM\ManyToOne(targetEntity="Gds\VenteBundle\Entity\Client", inversedBy="categoriesRemises")
     * @ORM\JoinColumn(nullable=false)
     */
    private $client;
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var float $remise
     *
     * @ORM\Column(name="remise", type="decimal", scale=2)
     */
    private $remise;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set remise
     *
     * @param float $remise
     * @return CategorieRemise
     */
    public function setRemise($remise)
    {
        $this->remise = $remise;
    
        return $this;
    }

    /**
     * Get remise
     *
     * @return float 
     */
    public function getRemise()
    {
        return $this->remise;
    }

    /**
     * Set article
     *
     * @param Gds\ArticleBundle\Entity\Article $article
     * @return CategorieRemise
     */
    public function setArticle(\Gds\ArticleBundle\Entity\Article $article)
    {
        $this->article = $article;
    
        return $this;
    }

    /**
     * Get article
     *
     * @return Gds\ArticleBundle\Entity\Article 
     */
    public function getArticle()
    {
        return $this->article;
    }

    /**
     * Set client
     *
     * @param Gds\VenteBundle\Entity\Client $client
     * @return CategorieRemise
     */
    public function setClient(\Gds\VenteBundle\Entity\Client $client)
    {
        $this->client = $client;
    
        return $this;
    }

    /**
     * Get client
     *
     * @return Gds\VenteBundle\Entity\Client 
     */
    public function getClient()
    {
        return $this->client;
    }
}
